package com.bw.feign;

import cn.hutool.core.lang.tree.Tree;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dept",path = "/dept")
public interface DeptFeignService {
    @GetMapping("/deptList")
    public List<Tree<String>> list();
//    @GetMapping("/getDeptById")
//    public String getDeptById(@RequestParam Integer deptId);
}
